﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;

namespace BlogManager.Application.Controls
{
    public partial class Messages : System.Web.UI.UserControl
    {
        public bool Show
        {
            get { return this.Visible; }
            set { this.Visible = value; }
        }

        public string Message
        {
            get { return LiteralForMessage.Text; }
            set { LiteralForMessage.Text = value; }
        }

        public void Redirect(string Url)
        {
            HtmlMeta meta = new HtmlMeta
                                {
                                    HttpEquiv = "refresh",
                                    Content = "2;url=" + Url
                                };

            Page.Header.Controls.Add(meta);
        }

        public void ReturnToCallingPage()
        {

        }

    }
}